/* 
 * File:   File.h
 * Author: guilhermemg
 *
 * Created on 12 de Fevereiro de 2012, 15:09
 */

#ifndef FILE_H
#define	FILE_H
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <exception>
#include <err.h>
#include <cstdio>

using namespace std;

class File {
public:
    File(string p);
    File(const File& orig);
    virtual ~File();
    int writeLine(string line);
    vector<string> readLines();
protected:
    string path;
    void setPath(string p);
    fstream file;
};

#endif	/* FILE_H */

